﻿using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

public partial class admin_webcon_categorydoctor : System.Web.UI.UserControl
{
    protected void Page_Load(object sender, EventArgs e)
    {

    }

    public int Guid
    {
        set
        {
            this.hlName.Attributes.Add("Guid", value.ToString());
            Doctor doc = new Doctor(value);
            this.hlName.NavigateUrl = Params.AdminFolderHttp + "doctor.aspx?guid=" + value.ToString();
            this.hlName.Text = doc.RealName;
            //this.labCategory.Text = doc.CategoryName;
            this.labEmail.Text = doc.Email;
            this.labID.Text = doc.UserID;
            this.labPaperNum.Text = doc.PaperCount.ToString();
            this.labStudentNum.Text = doc.StudentCount.ToString();
            this.labTeam.Text = doc.TeamName;
            this.labYjfx.Text = doc.Yjfx;
            this.labExpert.Text = doc.Expert ? "是" : "否";
        }
        get
        {
            return Convert.ToInt32(this.hlName.Attributes["Guid"]);
        }
    }

    public int SortID
    {
        set
        {
            this.labSortID.Text = value.ToString();
        }
    }
}
